package com.stedu.mall.common.service;

import com.github.pagehelper.PageInfo;
import com.stedu.mall.common.bean.Order;
import com.stedu.mall.common.bean.OrderVo;
import com.stedu.mall.common.exception.SteduException;

import java.util.List;
import java.util.Map;

public interface OrderService {
    void insert(OrderVo orderVo) throws SteduException;
    boolean update(Order order) throws SteduException;
    boolean delete(String id) throws SteduException;
    Order selectById(String id,Integer userId) throws SteduException;
    PageInfo<Order> selectByCondition(Order condition, Integer pageNum, Integer pageSize);
    void pay(OrderVo orderVo) throws SteduException;
    //获取省份和省份订单数量
    List<Map<String, Integer>> selectProCount();
    //收发货
    String updategood(Order order);
}
